home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 8151 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.4 KB  |  50 lines

  1. Path: vccnorth12.its.rpi.edu!fongc
  2. From: fongc@vccnorth12.its.rpi.edu (Chun Hing Fong)
  3. Newsgroups: comp.lang.c++
  4. Subject: extern ERROR ????
  5. Date: 15 Feb 1996 04:54:40 GMT
  6. Organization: its
  7. Message-ID: <4fueag$g67@usenet.rpi.edu>
  8. NNTP-Posting-Host: vccnorth12.its.rpi.edu
  9. X-Newsreader: TIN [version 1.2 PL2]
  10.  
  11. Hi !!
  12. Cna anyone help me with this C++ problem?? 
  13. I have  C++ program trying to use C library CURSES.
  14.  
  15. And I tried to use extern thing but it keeps giving me errors.
  16. I'm basically working on IBM RS/6000 aix 3.2.5 with xlC compiler.
  17.  
  18. ================= the source code =================
  19.  
  20.  
  21. #ifdef __cplusplus
  22. extern "C"  {
  23. #endif
  24.  
  25. #include <curses.h>
  26.  
  27. #ifdef __cplusplus
  28. }
  29. #endif
  30.  
  31. ======================================================
  32. ================== Error ====================
  33.  
  34. ~/MPS/SIM/S7 (85) make gui.o
  35.         xlC  -o gui.o -c gui.C -lcurses  -I/dept/cs/include/stl 
  36. "/usr/include/curses.h", line 79.14: 1540-090: (S) Syntax error - expected "declarator" and found "int".
  37. "gui.C", line 15.1: 1540-090: (S) Syntax error - expected "declarator" and found "}".
  38. "gui.C", line 89.9: 1540-013: (S) "wprintw" is undefined.
  39. "gui.C", line 122.40: 1540-090: (S) Syntax error - expected "type name" and found "pipeline".
  40. make: 1254-004 The error code from the last command is 1.
  41.  
  42. Make Quitting.
  43. ~/MPS/SIM/S7 (86) 
  44.  
  45. =============================================================
  46.  
  47. Can anyone figure this one out ??? Thanks !!!!! 
  48.  
  49. CHF
  50.